import http from '/src/utils/request'

export function getTopUser() {
  return http.get('/plugins/baliServer-module-activeUser/api/active/user?current=1&size=30')
}

export function getRank(by, type) {
  return http.get(`/plugins/baliServer-module-rank/api/rank/getRank?by=${type}&type=${by}`)
}

export function getSearch(keyword) {
  return http.get(`search?search=${keyword}`)
}
